Пример #1
0
        public InMemoryUserRepositoryTests()
        {
            fixture = new Fixture();

            cryptService = Substitute.For <ICryptService>();
            cryptService.Crypt(Arg.Any <string>()).Returns(args => args[0]);

            userFactory = new WriteModelUserFactory(cryptService);

            data = new InMemoryUserWriteData();

            repository = new InMemoryWriteModelUserRepository(userFactory, data);
        }
 public InMemoryWriteModelUserRepository(WriteModelUserFactory userFactory, InMemoryUserWriteData data)
 {
     UserFactory = userFactory;
     Data        = data;
 }