internal BankAccountDetails GiveAccountDetails(SingleAccountInfo selectedAccountInfo) { WebRequestComms sComms = new WebRequestComms(); CommunicationModule comms = new CommunicationModule(sComms); return comms.GiveAccountDetails(selectedAccountInfo); }
internal BankAccountDetails GiveAccountDetails(SingleAccountInfo selectedAccountInfo) { WebRequestComms sComms = new WebRequestComms(); CommunicationModule comms = new CommunicationModule(sComms); return(comms.GiveAccountDetails(selectedAccountInfo)); }
public void GiveAccountDetailsDoesAnythingAtAll() { //Given SingleAccountInfo fakeAccountInfo = new SingleAccountInfo(); IRequestComms selectedComms = new MockRequestComms(fakeAccountInfo); CommunicationModule moduleUnderTest = new CommunicationModule(selectedComms); //When BankAccountDetails result = moduleUnderTest.GiveAccountDetails(fakeAccountInfo); //Then Assert.IsTrue(result != null); }