public void MapResponseToRequest() { var mapper = new ApiStudentXFamilyModelMapper(); var model = new ApiStudentXFamilyResponseModel(); model.SetProperties(1, 1, 1); ApiStudentXFamilyRequestModel response = mapper.MapResponseToRequest(model); response.FamilyId.Should().Be(1); response.StudentId.Should().Be(1); }
public async void TestUpdate() { var model = await this.CreateRecord(); ApiStudentXFamilyModelMapper mapper = new ApiStudentXFamilyModelMapper(); UpdateResponse <ApiStudentXFamilyResponseModel> updateResponse = await this.Client.StudentXFamilyUpdateAsync(model.Id, mapper.MapResponseToRequest(model)); updateResponse.Record.Should().NotBeNull(); updateResponse.Success.Should().BeTrue(); await this.Cleanup(); }