private DeleteTheOrganization ( ) : System.Threading.Tasks.Task | ||
리턴 | System.Threading.Tasks.Task |
public async Task DeleteTheOrganization()
{
var command = new DeleteOrganization { Id = 1 };
var handler = new DeleteOrganizationHandler(Context);
await handler.Handle(command);
Assert.False(Context.Organizations.Any(x => x.Id == command.Id));
}