public static async Task InitialiseCmpCreditorAsync() { // Arrange var sut = new CommonDynamicsGateway(Main.Client, Main.DynamicsOptions, new NullLogger <CommonDynamicsGateway>(), null, Main.AuditContext, Main.AuditService); var model = "HSBC";// This has been the main testing CMP Creditor and should be present in all environments // Act & Asssert var result = await sut.SearchCmpCreditors(model); CmpCreditorId = result.First().Id; }
public static async Task InitialiseAdHocCreditorAsync() { // Arrange var sut = new CommonDynamicsGateway(Main.Client, Main.DynamicsOptions, new NullLogger <CommonDynamicsGateway>(), null, Main.AuditContext, Main.AuditService); var model = Main.Fixture.Create <string>(); // Act & Asssert var result = await sut.CreateAdHocCreditor(model); AdHocCreditorId = result; }
public void SetSutShared() => Sut_SharedSvc = new CommonDynamicsGateway(Main.Client, Main.DynamicsOptions, new NullLogger <CommonDynamicsGateway>(), new MapperService(), Main.AuditContext, Main.AuditService);