public void CreateEntity_Should_Create_planeType_typeof_PlaneType() { // Arrange PlaneTypeDTO planeTypeDTO = new PlaneTypeDTO { Id = 1, Carrying = 240000, Model = "Passenger's", Seats = 200 }; PlaneType planeType = new PlaneType { Id = 1, Carrying = 240000, Model = "Passenger's", Seats = 200 }; var planeTypeRepository = new FakeRepository <PlaneType>(); var planeTypeService = new PlaneTypeService(planeTypeRepository); // Act planeTypeService.CreateEntity(planeTypeDTO); var result = planeTypeRepository.Get(1); // Assert Assert.AreEqual(planeType, result); }
public void AddPlaneType() { service.CreateEntity(SelectedPlaneType); FillPlaneTypesCollection(); }