public void MapResponseToRequest() { var mapper = new ApiVoteTypesModelMapper(); var model = new ApiVoteTypesResponseModel(); model.SetProperties(1, "A"); ApiVoteTypesRequestModel response = mapper.MapResponseToRequest(model); response.Name.Should().Be("A"); }
public async void TestUpdate() { var model = await this.CreateRecord(); ApiVoteTypesModelMapper mapper = new ApiVoteTypesModelMapper(); UpdateResponse <ApiVoteTypesResponseModel> updateResponse = await this.Client.VoteTypesUpdateAsync(model.Id, mapper.MapResponseToRequest(model)); updateResponse.Record.Should().NotBeNull(); updateResponse.Success.Should().BeTrue(); await this.Cleanup(); }