public async void DeleteCustomerContactInfo_OK() { //Arrange var mockLogger = new Mock <ILogger <CustomerApi> >(); var mockHttpRequestFactory = new Mock <IHttpRequestFactory>(); mockHttpRequestFactory.Setup(x => x.Post(It.IsAny <string>(), It.IsAny <object>(), It.IsAny <string>())) .ReturnsAsync(new HttpResponseMessage { StatusCode = HttpStatusCode.OK }); var baseAddress = "BaseAddress"; var sut = new CustomerApi( mockLogger.Object, mockHttpRequestFactory.Object, baseAddress ); //Act await sut.DeleteCustomerContactInfoAsync(new DeleteCustomerContactInfoRequest { AccountNumber = "AW00000001", CustomerContactInfo = new TestBuilders.CustomerApi.DeleteCustomerContactInfo.CustomerContactInfoBuilder() .WithTestValues().Build() } ); //Assert mockHttpRequestFactory.Verify(x => x.Post(It.IsAny <string>(), It.IsAny <object>(), It.IsAny <string>())); }