public void FilenameSetHandler_SendsMessage_ForMessage( [NotNull, Frozen] ISelkieInMemoryBus bus, [NotNull] SourceFileSelectorModel sut, [NotNull] FilenameSetMessage message) { // Arrange // Act sut.FilenameSetHandler(message); // Assert bus.Received().PublishAsync(Arg.Is <FilenameChangedMessage>(x => x.Filename == message.Filename)); }
public void FilenameSetHandler_SetsFilename_ForMessage( [NotNull, Frozen] ISelkieInMemoryBus bus, [NotNull] SourceFileSelectorModel sut, [NotNull] FilenameSetMessage message) { // Arrange // Act sut.FilenameSetHandler(message); // Assert Assert.AreEqual(message.Filename, sut.Filename); }
internal void FilenameSetHandler(FilenameSetMessage message) { m_Manager.Filename = message.Filename; SendFilenameChangedMessage(); }