public void Must_Instantiate_Without_Identifier() { // Act var instance = new DataModelMock(); // Assert Assert.NotNull(instance); }
public void Send(IModelSend senderModel) { var contact = ContactCreator.CreateContact(senderModel); contact.Reciever = this; if (_currentRecieveStatus != EControllerStatus.Processing) { var processingModel = new DataModelMock { ControllerStatus = EControllerStatus.Processing }; _currentRecieveStatus = processingModel.ControllerStatus; OnRecieveModel?.Invoke(processingModel); contact.Sender.Send(senderModel); } }
public virtual void Send(IModelSend senderModel) { if (CurrentRecieveStatus == EControllerStatus.Processing) { return; } var contact = ContactCreator.CreateContact(senderModel); contact.Reciever = this; var processingModel = new DataModelMock { ControllerStatus = EControllerStatus.Processing }; CurrentRecieveStatus = processingModel.ControllerStatus; OnRecieveModel?.Invoke(processingModel); contact.Sender.Send(senderModel); }