Beispiel #1
0
        public void Init()
        {
            _context  = MoulaContextFactory.Create();
            _mediator = new Mock <IMediator>();

            _mediator.Setup(m => m.Send(It.IsAny <GetCustomerQuery>(), It.IsAny <CancellationToken>()))
            .Returns(Task.FromResult(new CustomerVm
            {
                Id = Guid.Parse("39aff1c2-5530-4112-bd3d-b72b52f4d69d")
            }));
        }
Beispiel #2
0
 public void Init()
 {
     _mediator = new Mock <IMediator>();
     _mediator
     .Setup(m => m.Send(It.IsAny <GetCustomerQuery>(), It.IsAny <CancellationToken>()))
     .Returns(Task.FromResult(new CustomerVm
     {
         Balance = 50000
     }));
     _context = MoulaContextFactory.Create();
 }
Beispiel #3
0
 public void Cleanup()
 {
     MoulaContextFactory.Destroy(_context);
 }
Beispiel #4
0
 public void Init()
 {
     _mediator = new Mock <IMediator>();
     _context  = MoulaContextFactory.Create();
 }
Beispiel #5
0
 public void Init()
 {
     _context = MoulaContextFactory.Create();
 }