public async Task UpdateGroupUseCaseNotNullInput() { var output = new Mock <UpdateGroupPresenter>().Object; var useCase = new UpdateGroupUseCase( groupRepository, output); await useCase.Execute(new UpdateGroupInput(new Domain.Entities.Group())); Assert.NotNull(output); Assert.True(output.ViewModel is NotFoundObjectResult); }
public async Task UpdateGroupUseCaseNullInput() { var output = new Mock <UpdateGroupPresenter>().Object; var useCase = new UpdateGroupUseCase( groupRepository, output); await useCase.Execute(null); Assert.NotNull(output); Assert.True(output.ViewModel is BadRequestObjectResult); }