Beispiel #1
0
        public async Task Should_Delete_Measure()
        {
            var deleteMeasureCommandHandler = new DeleteMeasureCommandHandler(_measureRepository);
            var request = DeleteMeasureCommandRequest.New(Guid.NewGuid());

            await deleteMeasureCommandHandler.Handle(request, new CancellationToken());

            Assert.True(deleted);
        }
Beispiel #2
0
        public void Should_Create_DeleteMeasureCommandHandler()
        {
            var deleteMeasureCommandHandler = new DeleteMeasureCommandHandler(_measureRepository);

            Assert.NotNull(deleteMeasureCommandHandler);
        }