コード例 #1
0
 public void CanCallTheDatabaseGetAllMethod(string uprn, string postcode, bool isMaster)
 {
     _fakeGateway.Setup(m => m.GetHelpRequestsForUprn(uprn, postcode, isMaster))
     .Returns(new List <ResidentSupportAnnex>()).Verifiable();
     _classUnderTest.GetHelpRequests(uprn, postcode, isMaster);
     _fakeGateway.Verify();
 }
コード例 #2
0
 public void CanCallTheDatabaseGetAllMethodWithAllQueryParameters(string uprn, string postcode, bool isMaster, string firstName, string lastName, string address)
 {
     _classUnderTest.GetHelpRequests(uprn, postcode, address, firstName, lastName, isMaster);
     _fakeGateway.Verify(m => m.QueryHelpRequests(uprn, postcode, address, firstName, lastName, isMaster));
 }