public static Service MapService(Domain2.Services.Service source, IEnumerable <Location> locations) { return(new Service { ID = source.ID, Description = source.Name, Locations = locations }); }
public static HoursEntryServiceVM MapFromDomain(Domain2.Services.Service service) { var x = new HoursEntryServiceVM { ID = service.ID, Code = service.Code, Name = service.Name, Description = service.Description, TypeID = (int)service.Type, TypeName = service.Type.ToString() }; return(x); }
public void EFContextGetsService() { Domain2.Services.Service sut = context.Services.First(); Assert.IsNotNull(sut); }