Пример #1
0
        public void MapBOToModelList()
        {
            var       mapper = new BOLAccountMapper();
            BOAccount bo     = new BOAccount();

            bo.SetProperties("A", "A", "A", "A", "A", "A", "A");
            List <ApiAccountResponseModel> response = mapper.MapBOToModel(new List <BOAccount>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
Пример #2
0
        public void MapModelToBO()
        {
            var mapper = new BOLAccountMapper();
            ApiAccountRequestModel model = new ApiAccountRequestModel();

            model.SetProperties("A", "A", "A", "A", "A", "A");
            BOAccount response = mapper.MapModelToBO("A", model);

            response.AccountType.Should().Be("A");
            response.EnvironmentIds.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
            response.TenantIds.Should().Be("A");
            response.TenantTags.Should().Be("A");
        }
Пример #3
0
        public void MapBOToModel()
        {
            var       mapper = new BOLAccountMapper();
            BOAccount bo     = new BOAccount();

            bo.SetProperties("A", "A", "A", "A", "A", "A", "A");
            ApiAccountResponseModel response = mapper.MapBOToModel(bo);

            response.AccountType.Should().Be("A");
            response.EnvironmentIds.Should().Be("A");
            response.Id.Should().Be("A");
            response.JSON.Should().Be("A");
            response.Name.Should().Be("A");
            response.TenantIds.Should().Be("A");
            response.TenantTags.Should().Be("A");
        }