public async Task Create_CreateClaimCommandObjectPassed_ProperMethodsCalledAndReturnCreateResult() { _mediatorMock.Setup(mediator => mediator.Send(It.IsAny <CreateClaimCommand>(), It.IsAny <CancellationToken>())).ReturnsAsync(1).Verifiable(); //Act var controller = new ClaimsController(_mediatorMock.Object); var result = await controller.Create(new CreateClaimCommand(DateTime.UtcNow, 2, "descripton", "incidence", "damagedItem", "street", "city", "country")); //Assert Assert.IsAssignableFrom <CreatedAtActionResult>(result); _mediatorMock.Verify(); }