Ejemplo n.º 1
0
 public UsersController(
     UserManager <RoadkillIdentityUser> userManager,
     IUserObjectsConverter userObjectsConverter)
 {
     _userManager          = userManager;
     _userObjectsConverter = userObjectsConverter;
 }
Ejemplo n.º 2
0
        public UsersControllerTests()
        {
            _fixture = new Fixture();
            var fakeStore = Substitute.For <IUserStore <RoadkillIdentityUser> >();

            _userManagerMock = Substitute.For <UserManager <RoadkillIdentityUser> >(
                fakeStore,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                new NullLogger <UserManager <RoadkillIdentityUser> >());

            _objectConverterMock = Substitute.For <IUserObjectsConverter>();
            _usersController     = new UsersController(_userManagerMock, _objectConverterMock);
        }