public async Task GivenTenancyAgreementRef_WhenCreateActionDiaryEntryWithCorrectParameters_ShouldReturnAValidObject( string tenancyRef, decimal actionBalance, string actionCategory, string actionCode, string comment) { //Arrange var fakeArrearsAgreementService = new Mock <IArrearsAgreementServiceChannel>(); IArrearsActionDiaryGateway classUnderTest = new ArrearsActionDiaryGateway(fakeArrearsAgreementService.Object); var request = new ArrearsActionCreateRequest { ArrearsAction = new ArrearsActionInfo { TenancyAgreementRef = tenancyRef, ActionBalance = actionBalance, ActionCategory = actionCategory, ActionCode = actionCode, Comment = comment }, DirectUser = new UserCredential { UserName = "******", UserPassword = "******" }, SourceSystem = "TestSystem" }; fakeArrearsAgreementService.Setup(s => s.CreateArrearsActionAsync(It.IsAny <ArrearsActionCreateRequest>())) .ReturnsAsync(Fake.CreateArrearsActionAsync(request)); //act var response = await classUnderTest.CreateActionDiaryEntryAsync(request); //assert response.ArrearsAction.TenancyAgreementRef.Should().Be(tenancyRef); response.ArrearsAction.ActionBalance.Should().Be(actionBalance); response.ArrearsAction.ActionCategory.Should().Be(actionCategory); response.ArrearsAction.ActionCode.Should().Be(actionCode); }