예제 #1
0
 protected override void Arrange()
 {
     base.Arrange();
     base.Act();
     Dto.Stub(x => x.ApplicationIdentifier).Return(ApplicationIdentifier);
     Dto.Stub(x => x.Identifier).Return(Identifier);
     Dto.Stub(x => x.SupplierCode).Return(Supplier);
     Dto.Stub(x => x.CountryCode).Return(CountryCode);
     Dto.Stub(x => x.Serial).Return(Serial);
     StringConstructer.Stub(x => x.Construct(ApplicationIdentifier, Identifier, CountryCode, Supplier, Serial)).Return(Expected);
 }
예제 #2
0
 public CodeDtoStringCreater(StringConstructer stringConstructer)
 {
     _stringConstructer = stringConstructer;
 }