marlabsinc / socialgoal Goto Github PK
View Code? Open in Web Editor NEWSample web app for ASP.NET MVC 5, EF 6 Code First, AutoMapper, Autofac and TDD
License: MIT License
Sample web app for ASP.NET MVC 5, EF 6 Code First, AutoMapper, Autofac and TDD
License: MIT License
I'm not 100% if I am correct in this, but I believe some of the UnitTests are producing false positive results.
When CreateAsync() is called in the AccountController, it reaches into TestUserStore.FindAsync() and it always finds the user, so creation fails. Changing this to something like:
public Task<ApplicationUser> FindByNameAsync(string userName)
{
foreach (ApplicationUser user in _users.Values)
{
if (user.UserName == userName)
return Task.FromResult(user);
}
return Task.FromResult<ApplicationUser>(null);
}
Will produce different results. The test LoginTest() succeeds because no user is created, and because user is null, RedirectToLocal is not called. UrlHelper is null in RedirectToLocal when using the above FindByNameAsync method.
i faced errors when running
dbSet.Remove(entity);
& dataContext.Entry(entity).State = EntityState.Modified;
The object cannot be deleted because it was not found in the ObjectStateManager
where dbcontext turned down to be null in each request
Appears to be missing controller/index, or index is corrupted, doesn't appear in your source tree, but does appear in the solution once downloaded and unzipped
while logged in as Admin clicking profile yields null object - admin profile isn't created by default which causes issue.
Also appears to be some field duplication with Profile object, (username there and in IdentityUser (asp.net identity already has it it)), do really need it 2 times since you use it in the viewmodel for userprofile view.
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.barRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'BarRenderer' of undefined or null reference
Hi
issue is coming when i am registering my self in this application by putting username email and password.below is the error
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.barRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'BarRenderer' of undefined or null reference
It looks like dataContext will never be null, since you call DataContext property in the constructor, which will initialize dataContext.
Hi guys,
I have just downloaded application and tried to register a user and login. When I do this I get alot of java issues
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.barRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'BarRenderer' of undefined or null reference
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.dateAxisRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'DateAxisRenderer' of undefined or null reference
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.categoryAxisRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'CategoryAxisRenderer' of undefined or null reference
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.pointLabels.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'PointLabels' of undefined or null reference
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.canvasTextRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'CanvasTextRenderer' of undefined or null reference
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.canvasAxisTickRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'CanvasAxisTickRenderer' of undefined or null reference
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.ohlcRenderer.min.js
0x800a138f - JavaScript runtime error: Unable to set property 'OHLCRenderer' of undefined or null reference
Unhandled exception at line 57, column 14 in http://localhost:5002/Scripts/jqplot.highlighter.min.js
0x800a138f - JavaScript runtime error: Unable to get property 'eventListenerHooks' of undefined or null reference
sir good work you have done a lot of work i appericiate you on this but sir when we invite people to the group no invitation is stored in database and so user get no notification same the case is is inviting the people to follow the cant search the person to invite for following goal
Seeing this code in place, i guess security is of no concern. And indeed, it is not explicitly listed as a goal of this project. But, md5(pass). Really? Might as well store the passwords as plain text...
hi,
this project is very helpful for the asp.net beginner.
thanks much.
and would you add cached layer for this project?
a mostly website need to cache some data.
thanks
Please change how work Nuget Package Restore to the "right way"
http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html
AFAIK DDD should be divided into bounded context and using events on its entities. Also you're having anemic models which is emphasize in DDD.
updates in .net 4.5.1 and above ?
I want to use Lazy Loading related Entities and Eager Loading Related Entities.
Please help me!
How I will connect to two databases in SocialGoal Infrastructure??
while using correct connectionString, i cannnot build the correct database, tables etc...
SocialGoal.Data Repository How testing
I have just downloaded the project and the Admin username and password does not work. the password I have is 123456
Navigating to Account/Followers, clicking on a follower's link, throws NULL Reference exception cause UserId is null at:
var followers = Mapper.Map<IEnumerable, IEnumerable>(users);
id will be null when reaching Account/UserProfile(string id)
var user = userService.GetUserProfile(id);
Changing both FollowingViewModel and FollowersViewModel to have string Id (not UserId) and their respective partial views will solve the problem.
Any chance to implement Angular JS on client side for this project too.
Passwords are hashed using MD5 which is an extremely bad example to provide. MD5 is considered a broken/banned algorithm by the SDL.
Banned Crypto and the SDL
http://blogs.msdn.com/b/sdl/archive/2009/07/16/banned-crypto-and-the-sdl.aspx
Better implementation uses a password based key derivation function (pbkdf2) and used in the new versions of the ASP.NET identity model. See
This implementation uses these key features:
A more extreme version of this algorithm can be found in the Thinktecture Identity server project:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.