public void MapBOToModelList() { var mapper = new BOLEventMapper(); BOEvent bo = new BOEvent(); bo.SetProperties(1, "A", "A", 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); List <ApiEventResponseModel> response = mapper.MapBOToModel(new List <BOEvent>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLEventMapper(); BOEvent bo = new BOEvent(); bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), DateTime.Parse("1/1/1987 12:00:00 AM"), 1m, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A"); ApiEventResponseModel response = mapper.MapBOToModel(bo); response.ActualEndDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.ActualStartDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.BillAmount.Should().Be(1m); response.EventStatusId.Should().Be(1); response.Id.Should().Be(1); response.ScheduledEndDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.ScheduledStartDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.StudentNote.Should().Be("A"); response.TeacherNote.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLEventMapper(); BOEvent bo = new BOEvent(); bo.SetProperties(1, "A", "A", 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); ApiEventResponseModel response = mapper.MapBOToModel(bo); response.Address1.Should().Be("A"); response.Address2.Should().Be("A"); response.CityId.Should().Be(1); response.Date.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Description.Should().Be("A"); response.EndDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Facebook.Should().Be("A"); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.StartDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Website.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLEventMapper(); BOEvent bo = new BOEvent(); bo.SetProperties("A", 1, "A", "A", "A", "A", DateTimeOffset.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", "A"); ApiEventResponseModel response = mapper.MapBOToModel(bo); response.AutoId.Should().Be(1); response.Category.Should().Be("A"); response.EnvironmentId.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Message.Should().Be("A"); response.Occurred.Should().Be(DateTimeOffset.Parse("1/1/1987 12:00:00 AM")); response.ProjectId.Should().Be("A"); response.RelatedDocumentIds.Should().Be("A"); response.TenantId.Should().Be("A"); response.UserId.Should().Be("A"); response.Username.Should().Be("A"); }