public async Task CreateTaskSubjectAsync_ModelLoadException_ReturnException()
        {
            var facade = new TaskSubjectFacade(_loggerMock.Object, _mapper, _command.Object);

            _command.Setup(action => action.Create(
                               It.Is <TaskSubjectEntity>(model => model.Uid == "1" && model.Object == "o1")))
            .Throws(new Exception("Our test exception"));

            Assert.Throws <Exception>(() =>
            {
                facade.CreateTaskSubjectAsync(new TaskSubjectDto
                {
                    Uid    = "1",
                    Object = "o1"
                }).GetAwaiter().GetResult();;
            });
        }
        public async Task CreateTaskSubjectAsync_Model_ReturnNewId()
        {
            var facade = new TaskSubjectFacade(_loggerMock.Object, _mapper, _command.Object);

            _command.Setup(action => action.Create(
                               It.Is <TaskSubjectEntity>(model => model.Uid == "1" && model.Object == "o1")))
            .ReturnsAsync(() => "newId");

            var result = await facade.CreateTaskSubjectAsync(new TaskSubjectDto
            {
                Uid    = "1",
                Object = "o1"
            });

            _command.Verify();
            result.Should().Be("newId");
        }