public void PlaneCreate() { PlaneService planeService = new PlaneService(unitOfWork); PlaneDTO planeDTO = new PlaneDTO() { Name = "test", Made = new DateTime(1, 2, 3), Exploitation = new TimeSpan(0, 1, 2), Type = new PlaneTypeDTO() { Model = "test", CarryCapacity = 12, Places = 15 } }; planeService.CreatePlane(planeDTO); Plane plane = fakePlaneRepository.Get(1); Assert.AreEqual(plane.Name, planeDTO.Name); Assert.AreEqual(plane.Made, planeDTO.Made); Assert.AreEqual(plane.Exploitation, planeDTO.Exploitation); Assert.AreEqual(plane.Type.Model, planeDTO.Type.Model); Assert.AreEqual(plane.Type.CarryCapacity, planeDTO.Type.CarryCapacity); Assert.AreEqual(plane.Type.Places, planeDTO.Type.Places); }