public void MapBOToEF() { var mapper = new DALTenantMapper(); var bo = new BOTenant(); bo.SetProperties(1, "A"); Tenant response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALTenantMapper(); var bo = new BOTenant(); bo.SetProperties("A", BitConverter.GetBytes(1), "A", "A", "A", "A"); Tenant response = mapper.MapBOToEF(bo); response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1)); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.ProjectIds.Should().Be("A"); response.TenantTags.Should().Be("A"); }