public void SetUp() { repository = new PlaneModelRepository(new BoengServiceWebSiteContext()); plane = new PlaneModel() { Name = "Not Boeing", Description = "Totally not boeing", YearOfProd = DateTime.UtcNow }; PlaneRepository_CreatePlane(plane); }
public UnitOfWork(IPlaneModelRepository planes, IUserRepository users, IPlanePartRepository parts) { Planes = planes; Users = users; Parts = parts; }