Ejemplo n.º 1
0
        public void CreateLocation_WithoutLabel_NeverCalls_CreateLocationCommand()
        {
            createLocationModel.Label = string.Empty;

            Task <int> result = _createLocation.Execute(userId, createLocationModel);

            _createLocationCommand.Verify(v => v.Execute(userId, createLocationModel), Times.Never);
        }
        public void CreateLocation_WithMandatoryParameters_Calls_CreateLocationCommand_Once()
        {
            Task <int> result = _createLocation.Execute(userId, createLocationModel);

            _createLocationCommand.Verify(v => v.Execute(userId, createLocationModel), Times.Once);
        }