Ejemplo n.º 1
0
 public void CreateMethod()
 {
     // preparation
     var cosmos    = new Mock.CosmosMock();
     var logger    = new Mock.LoggerMock <BeaconApi>();
     var beaconApi = new BeaconApi(cosmos, logger);
 }
Ejemplo n.º 2
0
 public void CreateMethod()
 {
     // preparation
     var cosmos  = new Mock.CosmosMock();
     var logger  = new Mock.LoggerMock <InfectionApi>();
     var userApi = new InfectionApi(cosmos, logger);
 }
Ejemplo n.º 3
0
 public void CreateMethod()
 {
     // preparation
     var cosmos      = new Mock.CosmosMock();
     var logger      = new Mock.LoggerMock <RegisterApi>();
     var registerApi = new RegisterApi(cosmos, logger);
 }
Ejemplo n.º 4
0
 public void CreateMethod()
 {
     // preparation
     var cosmos       = new Mock.CosmosMock();
     var notification = new Mock.NotificationServiceMock();
     var logger       = new Mock.LoggerMock <UserApi>();
     var userApi      = new UserApi(cosmos, notification, logger);
 }
Ejemplo n.º 5
0
        public void RunMethod()
        {
            // preparation
            var cosmos    = new Mock.CosmosMock();
            var logger    = new Mock.LoggerMock <BeaconApi>();
            var beaconApi = new BeaconApi(cosmos, logger);
            var context   = new Mock.HttpContextMock();

            // action
            beaconApi.Run(context.Request);
            // assert
        }
Ejemplo n.º 6
0
        public void RunMethod()
        {
            // preparation
            var cosmos      = new Mock.CosmosMock();
            var cryption    = new Mock.CryptionServiceMock();
            var logger      = new Mock.LoggerMock <RegisterApi>();
            var registerApi = new RegisterApi(cosmos, cryption, logger);
            var context     = new Mock.HttpContextMock();

            // action
            registerApi.Run(context.Request);
            // assert
        }
Ejemplo n.º 7
0
        public void RunMethod()
        {
            // preparation
            var cosmos       = new Mock.CosmosMock();
            var notification = new Mock.NotificationServiceMock();
            var logger       = new Mock.LoggerMock <UserApi>();
            var userApi      = new UserApi(cosmos, notification, logger);
            var context      = new Mock.HttpContextMock();

            // action
            userApi.Run(context.Request);
            // assert
        }