private async Task <ApiCountryRegionCurrencyResponseModel> CreateRecord() { var model = new ApiCountryRegionCurrencyRequestModel(); model.SetProperties("A", DateTime.Parse("1/1/1988 12:00:00 AM")); CreateResponse <ApiCountryRegionCurrencyResponseModel> result = await this.Client.CountryRegionCurrencyCreateAsync(model); result.Success.Should().BeTrue(); return(result.Record); }
public void MapModelToBO() { var mapper = new BOLCountryRegionCurrencyMapper(); ApiCountryRegionCurrencyRequestModel model = new ApiCountryRegionCurrencyRequestModel(); model.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM")); BOCountryRegionCurrency response = mapper.MapModelToBO("A", model); response.CurrencyCode.Should().Be("A"); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); }
public void CreatePatch() { var mapper = new ApiCountryRegionCurrencyModelMapper(); var model = new ApiCountryRegionCurrencyRequestModel(); model.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM")); JsonPatchDocument <ApiCountryRegionCurrencyRequestModel> patch = mapper.CreatePatch(model); var response = new ApiCountryRegionCurrencyRequestModel(); patch.ApplyTo(response); response.CurrencyCode.Should().Be("A"); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); }