public void Initialize() { EfStorage storage = new EfStorage(new EfStorageDbInitializerTest()); storage.Database.Initialize(true); userRegistrationModel = new UserRegistrationModel() { Email = "*****@*****.**", Password = "******" }; userRegistrationModel.Save(); userModel = new UserModel(userRegistrationModel.Id); businessTripsRepository = new BusinessTripsRepository(); businessTripModel = new BusinessTripModel { Id = Guid.NewGuid(), EndingDate = DateTime.Now, StartingDate = DateTime.Now, User = userModel }; businessTripsRepository.SaveChanges(); }
public void TestInitialize() { controller = new UserOperationsController(); EfStorage storage = new EfStorage(new EfStorageDbInitializerTest()); storage.Database.Initialize(true); }
public void TestInitialize() { controller = new BusinessTripController(); EfStorage storage = new EfStorage(new EfStorageDbInitializerTest()); storage.Database.Initialize(true); }
private static ITrafficLightService CreateService() { var digitPredictor = new DigitPredictor(new BrokenSectionsExpert()); var timePredictor = new TrafficLightTimePredictor(digitPredictor); var storage = new EfStorage(new Context(CreateOptions())); return(new TrafficLightService(storage, new BrokenSectionsExpert(), timePredictor)); }
public void Initialize() { storage = new EfStorage(new EfStorageDbInitializerTest()); storage.Database.Initialize(true); userRegistrationModel = new UserRegistrationModel() { Name = "nume", Email = "*****@*****.**", Password = "******", ConfirmedPassword = "******", }; }
public void Initialize() { efStorage = new EfStorage(new EfStorageDbInitializerTest()); efStorage.Database.Initialize(true); repository = new UserRepository(); userEntity = new UserEntity() { Id = Guid.NewGuid(), Name = "Foo", Email = "*****@*****.**", HashedPassword = "******", }; }
public void Initialize() { efStorage = new EfStorage(new EfStorageDbInitializerTest()); efStorage.Database.Initialize(true); uniqueEmailAttribute = new UniqueEmailAttribute(); UserRegistrationModel userRegistrationModel = new UserRegistrationModel() { Name = "nume", Email = "*****@*****.**", Password = "******", }; userRegistrationModel.Save(); }
public void Initialize() { EfStorage efStorage = new EfStorage(new EfStorageDbInitializerTest()); efStorage.Database.Initialize(true); }