public void CreateResponse_Execute_CreatesInstance() { // Arrange var mapMock = Substitute.For <IApiCommandContentTypeMap <IApiCommandContentDeserializer> >(); var factory = new HttpResponseFactory(mapMock); var response = new HttpResponseMessage(); // Act var commandResponse = factory.CreateResponse(response); // Assert Assert.NotNull(commandResponse); Assert.IsType <ApiCommandResponse>(commandResponse); }