public void MapResponseToRequest() { var mapper = new ApiInvitationModelMapper(); var model = new ApiInvitationResponseModel(); model.SetProperties("A", "A", "A"); ApiInvitationRequestModel response = mapper.MapResponseToRequest(model); response.InvitationCode.Should().Be("A"); response.JSON.Should().Be("A"); }
public async void TestUpdate() { var model = await this.CreateRecord(); ApiInvitationModelMapper mapper = new ApiInvitationModelMapper(); UpdateResponse <ApiInvitationResponseModel> updateResponse = await this.Client.InvitationUpdateAsync(model.Id, mapper.MapResponseToRequest(model)); updateResponse.Record.Should().NotBeNull(); updateResponse.Success.Should().BeTrue(); await this.Cleanup(); }