MissileSharp / src / MissileSharp.Tests / Launcher / CommandCenterServiceTests.cs

using MissileSharp.Launcher.Services;
using Moq;
using NUnit.Framework;

namespace MissileSharp.Tests.Launcher
    public class CommandCenterServiceTests
        private ICommandCenterService commandcenterservice;
        private Mock<IAppConfigService> appconfigservice;

        public void Setup()
            this.appconfigservice = new Mock<IAppConfigService>();
            this.appconfigservice.Setup(stub => stub.LauncherName).Returns("MissileSharp.Tests.StubMissileLauncher");
            this.appconfigservice.Setup(stub => stub.LauncherAssembly).Returns("MissileSharp.Tests.dll");
            this.commandcenterservice = new CommandCenterService(this.appconfigservice.Object);

        public void GetCommandCenter_ValidLauncher_ReturnsCommandCenter()
            var commandCenter = this.commandcenterservice.GetCommandCenter();
            Assert.True(commandCenter is CommandCenter);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.