public void TestResetDtoDirectOk()
        {
            //SETUP
            var service = new ActionService <IBizActionInOut>(_emptyDbContext, new BizActionInOut(), _mapper, _noCachingConfig);
            var data    = new BizDataIn {
                Num = 123
            };

            //ATTEMPT
            service.ResetDto(data);

            //VERIFY
            data.ShouldNotBeNull();
            data.Num.ShouldEqual(123);
        }
Пример #2
0
        public async Task TestResetDtoDirectOk()
        {
            //SETUP
            var service = new ActionServiceAsync <IBizActionInOutAsync>(_emptyDbContext, new BizActionInOutAsync(), _wrappedConfig);
            var data    = new BizDataIn {
                Num = 123
            };

            //ATTEMPT
            await service.ResetDtoAsync(data);

            //VERIFY
            data.ShouldNotBeNull();
            data.Num.ShouldEqual(123);
        }