private async Task <ApiDatabaseLogResponseModel> CreateRecord()
        {
            var model = new ApiDatabaseLogRequestModel();

            model.SetProperties("B", "B", "B", DateTime.Parse("1/1/1988 12:00:00 AM"), "B", "B", "B");
            CreateResponse <ApiDatabaseLogResponseModel> result = await this.Client.DatabaseLogCreateAsync(model);

            result.Success.Should().BeTrue();
            return(result.Record);
        }
        public void MapModelToBO()
        {
            var mapper = new BOLDatabaseLogMapper();
            ApiDatabaseLogRequestModel model = new ApiDatabaseLogRequestModel();

            model.SetProperties("A", "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A");
            BODatabaseLog response = mapper.MapModelToBO(1, model);

            response.DatabaseUser.Should().Be("A");
            [email protected]().Be("A");
            [email protected]().Be("A");
            response.PostTime.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.Schema.Should().Be("A");
            response.Tsql.Should().Be("A");
            response.XmlEvent.Should().Be("A");
        }
        public void CreatePatch()
        {
            var mapper = new ApiDatabaseLogModelMapper();
            var model  = new ApiDatabaseLogRequestModel();

            model.SetProperties("A", "A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A");

            JsonPatchDocument <ApiDatabaseLogRequestModel> patch = mapper.CreatePatch(model);
            var response = new ApiDatabaseLogRequestModel();

            patch.ApplyTo(response);
            response.DatabaseUser.Should().Be("A");
            [email protected]().Be("A");
            [email protected]().Be("A");
            response.PostTime.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.Schema.Should().Be("A");
            response.Tsql.Should().Be("A");
            response.XmlEvent.Should().Be("A");
        }