public ListAllUsersQueryHandlerTests(QueryTestFixture fixture)
        {
            this.context           = fixture.Context;
            this.mapper            = fixture.Mapper;
            this.mockedUserManager = IdentityMocker.GetMockedUserManager();

            this.userManagerService = new UserManagerService(
                this.mockedUserManager.Object,
                IdentityMocker.GetMockedRoleManager().Object,
                this.context);
        }
        public CreateAdminCommandTests()
        {
            this.mockedUserManager  = IdentityMocker.GetMockedUserManager();
            this.userManagerService = new UserManagerService(
                this.mockedUserManager.Object,
                IdentityMocker.GetMockedRoleManager().Object,
                this.Context);
            this.mockedUserService = new Mock <ICurrentUserService>();
            this.mockedUserService
            .Setup(x => x.UserId)
            .Returns(DataConstants.SampleAdminUserId);

            this.handler = new CreateAdminCommandHandler(this.userManagerService, this.mockedUserService.Object);
        }